package com.kuang.dao;

import com.kuang.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class UserDaoImpl2 extends SqlSessionDaoSupport implements UserMapper {
    //省去了私有化SqlSession，直接拿继承过来的用就可以了
   // User user=new User(5,"李玉","111111");
    public List<User> selectUsers() {
        UserMapper mapper = getSqlSession().getMapper(UserMapper.class);
        return mapper.selectUsers();
    }


}
